package gmail;


/**
 * Exception during parsing a packet from gmail
 * @author siuying
 * @version 0.3
 */
public class ParsePacketException
    extends Exception {
  /**
     * 
     */
    private static final long serialVersionUID = -8767881316865281368L;
protected String _packets;
  public ParsePacketException() {
    super();
    _packets = "";
  }

  public ParsePacketException(String msg) {
    super(msg);
    _packets = "";
  }

  public ParsePacketException(String msg, String packets) {
    super(msg);
    _packets = packets;
  }

  public String toString() {
    return "Message: " + getMessage() + "; Rawpackets:" + _packets;
  }
}
